API: gdk: Remove gdk_window_process_updates()
authorBenjamin Otte <otte@redhat.com>
Wed, 23 Nov 2016 18:02:58 +0000 (19:02 +0100)
committerBenjamin Otte <otte@redhat.com>
Wed, 23 Nov 2016 18:02:58 +0000 (19:02 +0100)
We have a frame clock now.

docs/reference/gdk/gdk4-sections.txt
gdk/gdkwindow.c
gdk/gdkwindow.h
tests/testgtk.c
tests/testinput.c

index 48e7daf8eefacd2f5c9041333c110142e4f4c97a..4b81010b704768f1f5bb67ba489f4bdfe555eb90 100644 (file)
@@ -352,7 +352,6 @@ gdk_window_get_update_area
 gdk_window_freeze_updates
 gdk_window_thaw_updates
 gdk_window_process_all_updates
-gdk_window_process_updates
 gdk_window_get_frame_clock
 
 <SUBSECTION>
index ee93ade486795b8d4e60362d1ee5ab63d8980fb8..07aff2ac730786a6540435706e1ed8f1bd6540a4 100644 (file)
@@ -3699,33 +3699,6 @@ gdk_window_process_updates_with_mode (GdkWindow     *window,
   g_ptr_array_free (list, TRUE);
 }
 
-/**
- * gdk_window_process_updates:
- * @window: a #GdkWindow
- * @update_children: whether to also process updates for child windows
- *
- * Sends one or more expose events to @window. The areas in each
- * expose event will cover the entire update area for the window (see
- * gdk_window_invalidate_region() for details). Normally GDK calls
- * gdk_window_process_all_updates() on your behalf, so there’s no
- * need to call this function unless you want to force expose events
- * to be delivered immediately and synchronously (vs. the usual
- * case, where GDK delivers them in an idle handler). Occasionally
- * this is useful to produce nicer scrolling behavior, for example.
- *
- **/
-void
-gdk_window_process_updates (GdkWindow *window,
-                           gboolean   update_children)
-{
-  g_return_if_fail (GDK_IS_WINDOW (window));
-
-  gdk_window_process_updates_with_mode (window,
-                                        update_children ?
-                                        PROCESS_UPDATES_WITH_ALL_CHILDREN :
-                                        PROCESS_UPDATES_NO_RECURSE);
-}
-
 static void
 gdk_window_invalidate_rect_full (GdkWindow          *window,
                                  const GdkRectangle *rect,
index 482cc371b6ce4b27578c1d5a8efb1525a6c05b0f..392933f7e82f74cb95301e4cf6a1ff022c5d99f8 100644 (file)
@@ -902,9 +902,6 @@ void       gdk_window_thaw_updates        (GdkWindow    *window);
 
 GDK_AVAILABLE_IN_ALL
 void       gdk_window_process_all_updates (void);
-GDK_AVAILABLE_IN_ALL
-void       gdk_window_process_updates     (GdkWindow    *window,
-                                          gboolean      update_children);
 
 GDK_AVAILABLE_IN_ALL
 void       gdk_window_constrain_size      (GdkGeometry    *geometry,
index dc4ae5e2819775732dce6592e282c5043d8dea86..2b380d95ce4b8e7fc6e25448c903778d9dfc4f17 100644 (file)
@@ -8069,7 +8069,6 @@ scroll_test_adjustment_changed (GtkAdjustment *adjustment, GtkWidget *widget)
 
   window = gtk_widget_get_window (widget);
   gdk_window_scroll (window, 0, dy);
-  gdk_window_process_updates (window, FALSE);
 }
 
 
index b22fa3ad0b7c82b212ae34ded7b2ad5ff45dfcb0..9c91bf51fae682894fd91cd9884e1c5ce54549ef 100644 (file)
@@ -110,7 +110,6 @@ draw_brush (GtkWidget *widget, GdkInputSource source,
   gtk_widget_queue_draw_area (widget,
                              update_rect.x, update_rect.y,
                              update_rect.width, update_rect.height);
-  gdk_window_process_updates (gtk_widget_get_window (widget), TRUE);
 }
 
 static guint32 motion_time;